function formatMoney(){
        var inputPrice = document.getElementById('ProductPrice');
        var strPrice = inputPrice.value;
        var count = 0;
        if(strPrice.indexOf('.')!=-1){
            for(var c=1;c<=strPrice.length;c++)
                strPrice = strPrice.replace('.','');
        }
        var len = strPrice.length;
        for(var i=len;i>=1;i--){
            count++;
            if(count%3==0 && count!=len)
                strPrice = strPrice.substr(0,i-1) + '.' + strPrice.substr(i-1,strPrice.length);
        }
        if(strPrice.substr(0,1)=='.')
            strPrice = strPrice.substr(1,strPrice.length);
        inputPrice.value=strPrice;
    }
